package part23_桥接模式_手机操作问题;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2020/3/9 23:53
 */
public class Client {
    public static void main(String[] args) {
        Phone phone01=new FoldedPhone(new XiaomiBrand());
        phone01.open();
        phone01.call();
        phone01.close();

        System.out.println("========");

        Phone phone02=new FoldedPhone(new VivoBrand());
        phone02.open();
        phone02.call();
        phone02.close();

        System.out.println("========");

        Phone phone03=new UpRightPhone(new XiaomiBrand());
        phone03.open();
        phone03.call();
        phone03.close();

        System.out.println("========");

        Phone phone04=new UpRightPhone(new VivoBrand());
        phone04.open();
        phone04.call();
        phone04.close();

    }
}
